<?php
/**
 * Created by PhpStorm.
 * 店铺操作记录
 * User: caicm
 * Date: 2017/7/6
 * Time: 11:19
 */

namespace WMApi\Model;


use Think\Model;

class WmStoreActionModel extends Model {

    /**
     * 添加店铺操作记录
     * Created By caicm
     * @param int $seller_id
     * @param int $store_id
     * @param int $store_sw
     * @param int $store_audit
     * @param int $is_on_line
     * @param string $remark
     * @return mixed
     */
    public function add_action($seller_id=0, $store_id=0, $store_sw=0, $store_audit=0, $is_on_line=0, $remark=''){

        $data = array(
            'seller_id' => $seller_id,
            'store_id' => $store_id,
            'store_sw' => $store_sw,
            'store_audit' => $store_audit,
            'is_on_line' => $is_on_line,
            'remark' => $remark,
            'action_type' => 1,
            'created' => '',
            'add_time' => gmtime()
        );

        return $this->data($data)->add();
    }
}